package com.telit.firecommand.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
public class PatPersonPatrolInfoVo {

    @ApiModelProperty(value = "巡护主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    //巡护人员ID
    @ApiModelProperty(value = "巡护人员ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long protectorId;

    @ApiModelProperty(value = "巡护人员名称")
    private String name;

    //巡护开始时间
    @ApiModelProperty(value = "巡护开始时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date startTime;

    //巡护结束时间
    @ApiModelProperty(value = "巡护结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;

    //巡护距离
    @ApiModelProperty(value = "巡护距离")
    private String distance;

    //巡护持续时间
    @ApiModelProperty(value = "巡护持续时间")
    private String duration;


    @ApiModelProperty(value = "巡护点集合")
    private String pointCollection;

    @ApiModelProperty(value = "巡护状态 1：巡护中 2：巡护结束")
    private Integer patrolState;

    @ApiModelProperty(value = "巡护状态")
    private String patrolStateName;

}
